home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / enlightenment / modules / mount / mount.edc < prev    next >
Text File  |  2006-01-09  |  8KB  |  386 lines

  1. fonts {
  2.    font: "VeraBd.ttf" "Edje-Vera-Bold";
  3. }
  4. images {
  5.    image: "dev-cdrom.png" COMP;
  6.    image: "dev-cdwriter.png" COMP;   
  7.    image: "dev-dvd.png" COMP;   
  8.    image: "dev-floppy.png" COMP;
  9.    image: "dev-harddisk.png" COMP;
  10.    image: "dev-network.png" COMP;
  11.    image: "dev-psp.png" COMP;
  12.    image: "dev-usb.png" COMP;   
  13.    image: "dev-zipdisk.png" COMP;
  14.    image: "dev-ipod.png" COMP;
  15.    image: "dev-camera.png" COMP;   
  16.    image: "e17_ibar_bg_h.png" COMP;
  17.    image: "e17_ibar_bg_v.png" COMP;
  18.    image: "lock.png" COMP;
  19. }
  20. collections {
  21. group {
  22.    name: "modules/mount/main";
  23.    script {
  24.       public orient;
  25.    }
  26.    parts {
  27.       part {
  28.      name:          "background";
  29.      mouse_events:  1;
  30.      description {
  31.         state:    "default" 0.0;
  32.         image {
  33.            normal: "e17_ibar_bg_h.png";
  34.            border: 0 0 0 0;
  35.         }
  36.         fill {
  37.            smooth: 0;
  38.         }
  39.      }
  40.      description {
  41.         state:    "vert" 0.0;
  42.         inherit:  "default" 0.0;
  43.         image {
  44.            normal: "e17_ibar_bg_v.png";
  45.         }
  46.      }     
  47.       }
  48.       part {
  49.      name:          "items_clip";
  50.      type:          RECT;
  51.      mouse_events:  0;
  52.      description {
  53.         state:    "default" 0.0;
  54.         rel1 {
  55.            to:       "background";
  56.            offset:   0    0;
  57.         }
  58.         rel2 {
  59.            to:       "background";
  60.            offset:   -1    -1;
  61.         }
  62.      }
  63.       }
  64.       part {
  65.      name:          "items";
  66.      type:          SWALLOW;
  67.      mouse_events:  0;
  68.      clip_to:       "items_clip";
  69.      description {
  70.         state:    "default" 0.0;
  71.         rel1 {
  72.            offset:   0    0;
  73.         }
  74.         rel2 {
  75.            offset:   -1    -1;
  76.         }
  77.      }
  78.      description {
  79.         state:    "horiz" 0.0;
  80.         inherit:  "default" 0.0;
  81.      }
  82.      description {
  83.         state:    "vert" 0.0;
  84.         inherit:  "default" 0.0;
  85.      }
  86.     }
  87.   }
  88.    programs {
  89.       program {
  90.      name:    "orient";
  91.      signal:  "set_orientation";
  92.      source:  "*";
  93.      script {
  94.         if (!strcmp(src, "horiz")) {
  95.            set_int(orient, 0);
  96.            set_state(PART:"background", "default", 0.0);
  97.            set_state(PART:"items", "horiz", 0.0);
  98.         }
  99.         else if (!strcmp(src, "vert")) {
  100.            set_int(orient, 2);
  101.            set_state(PART:"background", "vert", 0.0);
  102.            set_state(PART:"items", "vert", 0.0);
  103.         }
  104.      }
  105.       }
  106.    }
  107. }
  108.  
  109. group {
  110.    name: "modules/mount/icon";
  111.    script {
  112.       public mount;
  113.       public show_label;
  114.    }         
  115.    parts {
  116.       part {
  117.      name:          "background";
  118.      mouse_events:  0;
  119.      description {
  120.         state:    "default" 0.0;
  121.         image {
  122.            normal: "e17_ibar_bg_h.png";
  123.            border: 0 0 0 0;
  124.         }
  125.         fill {
  126.            smooth: 0;
  127.         }        
  128.      }
  129.      }
  130.    
  131.       part {
  132.      name:          "items_clip";
  133.      type:          RECT;
  134.      mouse_events:  1;
  135.      description {
  136.         state:    "default" 0.0;
  137.         rel1 {
  138.            to:       "background";
  139.            offset:   0    0;
  140.         }
  141.         rel2 {
  142.            to:       "background";
  143.            offset:   -1    -1;
  144.         }
  145.      }
  146.       }
  147.  
  148.       part {
  149.      name:          "items";
  150.      type:          SWALLOW;
  151.      mouse_events:  1;
  152.      clip_to:       "items_clip";
  153.      description {
  154.         state:    "default" 0.0;
  155.         rel1 {
  156.            offset:   0    0;
  157.         }
  158.         rel2 {
  159.            offset:   -1    -1;
  160.         }
  161.      }
  162.      }
  163.  
  164.      part {      
  165.         name:          "icon";
  166.         mouse_events:  1;
  167.         description {
  168.            state:    "default" 0.0;
  169.            visible: 0;           
  170.            image {
  171.               normal: "dev-harddisk.png";
  172.            }
  173.         }
  174.         description {
  175.            state:    "cdrom" 0.0;
  176.            visible: 1;           
  177.            image {
  178.               normal: "dev-cdrom.png";
  179.            }
  180.         }
  181.         description {
  182.            state:    "cdrw" 0.0;
  183.            visible: 1;           
  184.            image {
  185.               normal: "dev-cdwriter.png";
  186.            }
  187.         }
  188.         description {
  189.            state:    "dvd" 0.0;
  190.            visible: 1;           
  191.            image {
  192.               normal: "dev-dvd.png";
  193.            }
  194.         }
  195.         description {
  196.            state:    "floppy" 0.0;
  197.            visible: 1;           
  198.            image {
  199.               normal: "dev-floppy.png";
  200.            }
  201.         }
  202.         description {
  203.            state:    "harddisk" 0.0;
  204.            visible: 1;           
  205.            image {
  206.               normal: "dev-harddisk.png";
  207.            }
  208.         }
  209.         description {
  210.            state:    "network" 0.0;
  211.            visible: 1;           
  212.            image {
  213.               normal: "dev-network.png";
  214.            }
  215.         }
  216.         description {
  217.            state:    "psp" 0.0;
  218.            visible: 1;           
  219.            image {
  220.               normal: "dev-psp.png";
  221.            }
  222.         }
  223.         description {
  224.            state:    "usb" 0.0;
  225.            visible: 1;           
  226.            image {
  227.               normal: "dev-usb.png";
  228.            }
  229.         }
  230.         description {
  231.            state:    "zip" 0.0;
  232.            visible: 1;           
  233.            image {
  234.               normal: "dev-zipdisk.png";
  235.            }
  236.         }
  237.         description {
  238.            state:    "ipod" 0.0;
  239.            visible: 1;           
  240.            image {
  241.               normal: "dev-ipod.png";
  242.            }
  243.         }
  244.         description {
  245.            state:    "camera" 0.0;
  246.            visible: 1;           
  247.            image {
  248.               normal: "dev-camera.png";
  249.            }
  250.         }
  251.      }
  252.  
  253.      part {      
  254.         name:          "icon_overlay";
  255.         mouse_events:  0;
  256.         description {
  257.            state:    "default" 0.0;
  258.            visible: 0;
  259.            image {
  260.               normal: "lock.png";
  261.            }
  262.             rel1 {
  263.                relative: 0.5  0.5;
  264.                offset:   0   0;
  265.             }
  266.             rel2 {
  267.                relative: 1.0  1.0;
  268.                offset:   -1   -1;
  269.             }           
  270.         }
  271.         description {
  272.            state:    "hidden" 0.0;           
  273.            inherit: "default" 0.0;
  274.            visible: 0;           
  275.         }
  276.         description {
  277.            state:    "mounted" 0.0;           
  278.            inherit: "default" 0.0;
  279.            visible: 1;           
  280.         }
  281.      }
  282.     part {
  283.         name: "label";
  284.         mouse_events: 0;
  285.         type: TEXT;
  286.         effect: SOFT_SHADOW;
  287.         description {
  288.             state: "default" 0.0;
  289.             color: 0 0 0 255;
  290.             color3: 255 255 255 255;
  291.             visible: 1;
  292.             rel1 {
  293.                 relative: 0.0 0.0;
  294.                 offset: 0 0;            
  295.                 to: "icon";
  296.             }
  297.             rel2 {
  298.                 relative: 1.0 1.0;
  299.                 offset: -1 -1;            
  300.                 to: "icon";
  301.             }
  302.             text {
  303.                 text: "";
  304.                 font: "Edje-Vera-Bold";
  305.                 size: 10;
  306.                 min:      1 1;                
  307.                 align: 0.5 0.5;
  308.             }
  309.         }
  310.         description {
  311.            state:    "hidden" 0.0;           
  312.            inherit: "default" 0.0;
  313.            visible: 0;           
  314.         }
  315.     }
  316.  
  317.     }
  318.     programs {
  319.         program {
  320.             name:    "m1";
  321.             signal:  "mouse,down,1";
  322.             source:  "icon";
  323.             action:  SIGNAL_EMIT "set_mount" "";
  324.         }
  325.         program {
  326.             name:    "m2";
  327.             signal:  "set_mounted";
  328.             source:  "icon";
  329.               action:  STATE_SET "mounted" 0.0;                  
  330.             target:  "icon_overlay";                  
  331.         }
  332.         program {
  333.             name:    "m3";
  334.             signal:  "set_unmounted";
  335.             source:  "icon";
  336.               action:  STATE_SET "hidden" 0.0;                  
  337.             target:  "icon_overlay";                  
  338.         }
  339.         
  340.         program {
  341.             name:    "mount";
  342.             signal:  "set_mount";
  343.             source:  "*";
  344.             script {
  345.                 new ori = get_int(mount);
  346.                 if (ori == 0) {
  347.                     set_int(mount, 1);
  348.                     set_state(PART:"icon_overlay", "mounted", 0.0);
  349.                 }
  350.                 else {
  351.                     set_int(mount, 0);
  352.                     set_state(PART:"icon_overlay", "hidden", 0.0);
  353.                 }
  354.             }
  355.         }
  356.          program {
  357.              name:    "seticon";
  358.              signal:  "set_icon";
  359.              source:  "*";
  360.              script {
  361.                    set_state(PART:"icon", src, 0.0);
  362.              }
  363.         }
  364.         program {
  365.             name:"showlabel";
  366.             signal: "show_label";
  367.             source: "*";
  368.             script {
  369.                     set_int(show_label, 1);
  370.                     set_state(PART:"label", "default", 0.0);
  371.                 }
  372.             }
  373.         }
  374.         program {
  375.             name:"hidelabel";
  376.             signal: "hide_label";
  377.             source: "*";
  378.             script {
  379.                     set_int(show_label, 0);
  380.                     set_state(PART:"label", "hidden", 0.0);
  381.                 }
  382.             }
  383.         }
  384.  
  385.     }
  386.